package com.scm.biz.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户类
 * @author Young
 * @Date 2016.11.14
 * 
 */
public class Customer implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	protected Long id;   				//客户ID
	private String code;				//客户编号
	protected String fullname; 			//客户名称
	protected String abbreviation;     	//简称
	protected String category;			//客户分类
	protected String level;				//客户等级
	protected Integer provinceId;		//省份ID
	protected Integer cityId;			//城市ID
	protected Integer areaId;			//区县ID
	protected String detailAddress;		//详细地址
	protected String deliveryAddress;	//收件地址
	protected String memo;				//备注
	protected String targetConsumer;	//目标人群
	protected String saleChannel;		//销售渠道
	protected String saleAmount;		//年销售额
	protected String salePrice;			//销售价格
	protected String updateFrequency;	//上新频率
	protected Integer updateCount;		//上新数量
	protected Date createAt;			//创建时间
	protected Date updateAt;			//更新时间
	protected String web;				//客户网址
	private Integer creator;			//创建者ID
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getFullname() {
		return fullname;
	}
	public void setFullname(String fullname) {
		this.fullname = fullname;
	}
	public String getAbbreviation() {
		return abbreviation;
	}
	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public Integer getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}
	public Integer getCityId() {
		return cityId;
	}
	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}
	public Integer getAreaId() {
		return areaId;
	}
	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}
	public String getDetailAddress() {
		return detailAddress;
	}
	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public String getDeliveryAddress() {
		return deliveryAddress;
	}
	public void setDeliveryAddress(String deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getTargetConsumer() {
		return targetConsumer;
	}
	public void setTargetConsumer(String targetConsumer) {
		this.targetConsumer = targetConsumer;
	}
	public String getSaleChannel() {
		return saleChannel;
	}
	public void setSaleChannel(String saleChannel) {
		this.saleChannel = saleChannel;
	}
	public String getSaleAmount() {
		return saleAmount;
	}
	public void setSaleAmount(String saleAmount) {
		this.saleAmount = saleAmount;
	}
	public String getSalePrice() {
		return salePrice;
	}
	public void setSalePrice(String salePrice) {
		this.salePrice = salePrice;
	}
	public String getUpdateFrequency() {
		return updateFrequency;
	}
	public void setUpdateFrequency(String updateFrequency) {
		this.updateFrequency = updateFrequency;
	}
	public Integer getUpdateCount() {
		return updateCount;
	}
	public void setUpdateCount(Integer updateCount) {
		this.updateCount = updateCount;
	}
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}
	public Date getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}
	public String getWeb() {
		return web;
	}
	public void setWeb(String web) {
		this.web = web;
	}
	public Integer getCreator() {
		return creator;
	}
	public void setCreator(Integer creator) {
		this.creator = creator;
	}
	@Override
	public String toString() {
		return "Customer [id=" + id + ", code=" + code + ", fullname=" + fullname + ", abbreviation=" + abbreviation
				+ ", category=" + category + ", level=" + level + ", provinceId=" + provinceId + ", cityId=" + cityId
				+ ", areaId=" + areaId + ", detailAddress=" + detailAddress + ", deliveryAddress=" + deliveryAddress
				+ ", memo=" + memo + ", targetConsumer=" + targetConsumer + ", saleChannel=" + saleChannel
				+ ", saleAmount=" + saleAmount + ", salePrice=" + salePrice + ", updateFrequency=" + updateFrequency
				+ ", updateCount=" + updateCount + ", createAt=" + createAt + ", updateAt=" + updateAt + ", web=" + web
				+ ", creator=" + creator + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Customer other = (Customer) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}
